package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.common.api.ResultCode;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebHookTest {

    /**
     * whehook测试
     * @return
     */
    @GetMapping("/webHook")
    public CommonResult views() throws Exception {
        if(1==1){
            throw new Exception("后台报错测试");
        }
        return CommonResult.success(ResultCode.SUCCESS);
    }

}
